<template>
	<view class="">
		<view class="" v-if="lists.length>0">
			<view class="">
				<slot />
			</view>
			<view class="mt24" v-if="ismore">
				<pullUp :status='state'></pullUp>
			</view>
		</view>
		<view class="" v-else>
			<u-empty :mode="empty_icon" :icon="`http://cdn.uviewui.com/uview/empty/${empty_icon}.png`"
				:text='empty_text' />
		</view>

		<!-- 使用
		 <dataList :lists='list' :state='status'>
			<view class="" v-for="item in list" :key="item">
			
			</view>
		 </dataList>
		 -->
	</view>
</template>

<script>
	import {
		pageSize
	} from '@/components/minxins.js' //引入minxins
	export default {
		mixins: [pageSize],
		components: {},
		props: {
			empty_icon: { //空图标
				default: () => 'data'
			},
			empty_text: { //空状态文字
				default: () => '暂无数据'
			},
			lists: { //数据列表
				default: () => []
			},
			state: { //状态
				default: () => 'loadmore'
			},
			ismore: { //是否显示‘没有更多标签’
				default: () => true
			},
		},
		data() {
			return {

			}
		},
		onLoad() {

		},
		onShow() {

		},
		methods: {

		},
		computed: {

		},
		watch: {

		}
	}
</script>

<style lang="scss" scoped>

</style>